<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表展示</title>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
</head>
<body>
<div class="layui-tab">

        {foreach $type as $v}
    <button type="button" class="layui-btn layui-btn-normal"><a href="{:url('type')}?id={$v.id}">{$v.type_name}</a></button>
        {/foreach}

    <div class="layui-bg-gray" style="padding: 30px;">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md6">
                <div class="layui-panel">
                    {foreach $data as $v}
                    <div style="padding: 50px 30px;"><a href="{:url('read')}?a_id={$v.a_id}">{$v.a_title}</a></div>
                    {/foreach}
                </div>
            </div>
        </div>
    </div>

</div>
</body>
</html>
<!-- 引入 layui.js -->
<script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>